package me.whf.model;

import java.io.Serializable;

import me.whf.util.Utils.AccountType;
import me.whf.util.Utils.UserType;

public class Account implements Serializable {
	private String username;	// 用户名，主要用于转账的用例
	private String identity;	// 身份证，如果是企业的话就是企业ID
	private UserType userType;	// 用户类型，分为普通用户，VIP用户和企业用户
	private double balance;		// 账户余额
	private String id;			// account ID，由系统生成，也就是银行卡卡号
	private String password;	// 密码，由用户开户时定义，企业用户为空
	private AccountType accountType;	// 定期活期
	
	public Account(String username, String identity, UserType userType,
			double balance, String id, String password, AccountType accountType) {
		this.username = username;
		this.identity = identity;
		this.userType = userType;
		this.balance = balance;
		this.id = id;
		this.password = password;
		this.accountType = accountType;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public AccountType getAccountType() {
		return accountType;
	}

	public void setAccountType(AccountType accountType) {
		this.accountType = accountType;
	}
	
	
}
